<?php 
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header');
?> 
<script language="javascript" type="text/javascript" src="<?php echo JS_PATH?>commoncheck.js"></script>
<body onload="myinfocheck()">
<div class="txt_head_frame">
	<span class="txt_frame_title">修改密码</span>
</div>
<form name="myform" action="?m=admin&c=adminmanage&a=admin_edit_info" method="post" id="myform">
<div id="main_content">
<input type="hidden" name="info[userid]" value="<?php echo $userid;?>"></input>
<div class="txt_content_frame">
	<div class="txt_content_box">
		<div class="txt_content_left">
			<div class="txt_text_left">用户名:</div>
			<div class="txt_left_input"><?php echo $username;?></div><br/><br/>
			<div class="txt_text_left">email:<span>[*]</span></div>
			<div class="txt_left_input"><input name="info[email]" type="text" class="txt" id="email" value="<?php echo $email?>"/></div><span id="validateemail" class="validate"></span><br/><br/>
            <div class="txt_text_left">真实姓名:</div>
			<div class="txt_left_input"><input name="info[realname]" type="text" class="txt" id="realname" value="<?php echo $realname?>"/></div><span id="validaterealname" class="validate"></span><br/><br/>
		</div>
	</div>
</div>

<div class="txt_btn">
	<input name="dosubmit" type="submit" class="txt_btn_a" value=" 保存 " />
</div>
</div>
</form>
</body>
<script type="text/javascript">
<!--
//个人信息检测
function myinfocheck(){
	$('#email').blur(function(){
		var validateEmail = $('#validateemail');
		if(!is_email($(this).val())){
			validateEmail.html('<img src="images/false.gif" width=16 heigth=16>请输入正确的邮箱');	
		} else {
			validateEmail.html('<img src="images/true.gif" width=16 heigth=16>');		
		}
	});
	
	$('#realname').blur(function(){
		var validateName = $('#validaterealname');
		if(!isNotNull($(this).val())){
			validateName.html('<img src="images/false.gif" width=16 heigth=16>真实姓名不能为空');	
		} else {
			if(is_Name($(this).val())){
				validateName.html('<img src="images/true.gif" width=16 heigth=16>');		
			} else {
				validateName.html('<img src="images/false.gif" width=16 heigth=16>为4-15位中英组合');	
			}
		}
	});
}
//-->
</script>
</html>